import { t } from '@src/locales'
const chargeAndConsumeObj = {
  taskConsume: t('member.detail.title27'),
  shopConsume: t('member.detail.title2'),
  paasConsume: t('member.detail.title29'),
  membershipRecharge: t('member.detail.title16'),
  serviceFeeExchangeIntegral: t('member.detail.title21'),
  overdueIntegral: t('member.detail.title10'),
  obsoleteIntegral: t('member.components.title37'),
  overdueServiceFee: t('member.detail.title19'),
  obsoleteServiceFee: t('member.components.title38'),
  init: t('member.detail.title1'),
  refundReturn: t('member.detail.title25'),
  usePoints: t('member.components.title54'),
  useBalance: t('member.components.title55'),
  paasFreezePoints: t('member.detail.title32'),
}
export default {
  name: 'record-mixin',
  data() {
    return {

    };
  },
  methods: {
    handleCurrentChange(pageNum) {
      this.tableObj.pageNum = pageNum
      this.getTableData()
    },
    handleSizeChange(pageSize) {
      this.tableObj.pageSize = pageSize
      this.tableObj.pageNum = 1
      this.getTableData()
    },
  },
  filters: {
    causeFormat (value) {
      if (!value) return;
      return chargeAndConsumeObj[value]
    },
  },
}